<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<%@ taglib prefix="zjf" uri="http://www.zjf.com.cn/mytag" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
</head>
<body>
<!-- 分页功能 start -->
<html:link action="/control/reply/replyList.do?page=1">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/control/reply/replyList.do?page=${p}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/control/reply/replyList.do?page=${pageBean.totalPage }">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}
<!-- 分页功能 end -->
	<table class="table">
						<tr class= "row2">
							<td>UID</td>
							<td>回帖名</td>
							<td>所属主题</td>
							<td>作者</td>
							<td>发布时间</td>
							<td>修改</td>
							<td>删除</td>
							
						</tr>
						<c:forEach items="${datas}" var="data">
						<tr class= "row1">
							
							<td>${data.id}</td>
							<td>${data.title}</td>
							<td>${data.post.title}</td>
							<td>${data.author.username}</td>
							<td>${data.pubDate}</td>
							<td><zjf:privilege value="control.reply.edit"><html:link action="/control/reply/replyView.do?id=${data.id}">修改</html:link></zjf:privilege></td>
							<td><zjf:privilege value="control.reply.delete"><html:link action="/control/reply/replyDelete.do?id=${data.id}">删除</html:link></zjf:privilege></td>
						</tr>
						</c:forEach>
	</table>
<!-- 分页功能 start -->
<html:link action="/control/reply/replyList.do?page=1">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/control/reply/replyList.do?page=${p}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/control/reply/replyList.do?page=${pageBean.totalPage }">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}
<!-- 分页功能 end -->
</body>
</html>